package com.fy.admin.feign;

import com.fy.admin.vo.ScenicVo;
import com.fy.common.api.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Component
@FeignClient(name = "domain-merchant")
public interface ScenicManagementFeignService {
    @GetMapping(value = "/findAll/{pageSize}/{limit}")
     CommonResult findAll(@PathVariable Integer pageSize, @PathVariable Integer limit);

    @PostMapping(value = "/add")
     CommonResult add(@RequestBody ScenicVo scenicVo);
    @PostMapping(value = "/edit")
     CommonResult edit(@RequestBody ScenicVo scenicVo);
    @DeleteMapping(value = "/delete/{id}")
     CommonResult delete(@PathVariable Integer id);
    @GetMapping(value = "/findById/{id}")
     CommonResult findById(@PathVariable Integer id);
}
